from . import db


class History(db.Model):
    __tablename__ = 'history'
    uid = db.Column(db.Integer, primary_key=True)
    pid = db.Column(db.Integer, primary_key=True)
    date = db.Column(db.DateTime, primary_key=True)

    def __repr__(self, **kwargs) -> str:
        return f'History<uid={self.uid}, pid={self.pid}, date={self.date}'